/**
 * Class: XY
 * Contains x/y coordinates
 */
var XY = SMap.XY = SMap.Class(AbstractPoint, {
	fromArray: function(a) {
		this.x = a[0];
		this.y = a[1];
		return this;
	},
	toArray: function() {
		return [this.x, this.y];
	},
	toString: function() {
		return format("{xy: {x}, {y}}", this);
	},
    clone: function() {
    	return new XY(this.x, this.y);
    }
});
